<?php

define('ACC', true);
require('../includes/init.php');

if(!isset($_SESSION['admin_username'])){
	$smarty->display('./admin/login.html');
}else{
	
	if (!isset($_GET['act'])){
		$smarty->display('./admin/index.html');
	} else {
		if($_GET['act'] == 'top'){
			$smarty->display('./admin/top.html');
		} else if ($_GET['act'] == 'center'){
			$smarty->display('./admin/center.html');
		} else if ($_GET['act'] == 'down'){
			$smarty->display('./admin/down.html');
		} else if ($_GET['act'] == 'left'){
			$smarty->display('./admin/left.html');
		} else if ($_GET['act'] == 'right'){
			$smarty->display('./admin/right.html');
		}
	}
	
}





?>